package cn.funeralobjects.ams.service;

import cn.funeralobjects.ams.BasicInfo;
import cn.funeralobjects.ams.entity.ERamRole;
import cn.funeralobjects.ams.entity.ERamRoleInfo;
import cn.funeralobjects.ams.model.RamRole;
import cn.funeralobjects.common.service.CommonCloudCrudService;

import java.util.Optional;

/**
 * @author FuneralObjects
 * Create date: 2020/6/7 2:08 PM
 */
public interface RamRoleService extends CommonCloudCrudService<RamRole, ERamRole, Integer> {
    String ENTITY_NAME = "RamRole";


    @Override
    default String getName() {
        return ENTITY_NAME;
    }

    @Override
    default String getModuleName() {
        return BasicInfo.MODULE_NAME;
    }

    boolean existsRoleNameInProdRes(String roleName, Integer prodResId);

    Optional<ERamRoleInfo> getRamInfoById(Integer id);
}
